// packageD/member/component/rated/rated.js
const skinBehavior = require('../../../../utils/themeSkin/skinBehavior');
Component({
  behaviors: [skinBehavior],
  /**
   * 组件的属性列表
   */
  properties: {
    commList: {
      type:Array,
      value:[]
    }
  },
  options: {  //小程序获取外部样式
    addGlobalClass: true,
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    //评价
    toComment(e) {
      let order_id = e.target.dataset.itemid;
      let good = e.target.dataset.good;
      //evaluate
      wx.navigateTo({
        url:  `/packageD/member/evaluate/evaluate?order_id=${good.id}&id=${order_id}`
      });
    },
  }
})
